---
apiVersion: v1
kind: Secret
metadata:
  name: snapshot-validation-webhook-certs
  namespace: d8-{{ .Chart.Name }}
  {{- include "helm_lib_module_labels" (list . (dict "app" "snapshot-validation-webhook")) | nindent 2 }}
type: kubernetes.io/tls
data:
  {{- with .Values.snapshotController.internal.webhookCert }}
  tls.crt: {{ b64enc .cert }}
  tls.key: {{ b64enc .key }}
  ca.crt: {{ b64enc .ca }}
  {{- end }}
